package testJdk.base.jvm;

import java.util.LinkedList;


public class HelloGC {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("hello,gc");
        LinkedList<Object> list = new LinkedList<>();
        for (; ; ) {
            byte[] bytes = new byte[1024 * 1024];
            list.add(bytes);
//            Thread.sleep(1000);
        }
    }
}
